package com.itech.stocks;

public class StockPrice {
	private String symbol;
	private double lastTradePrice;
	private double dayOpen;
	private double dayHigh;
	private double dayLow;
	private double previousDayClose;
	

	//Getters and Setters.
	public String getSymbol() {
		return symbol;
	}
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
	
	public double getLastTradePrice() {
		return lastTradePrice;
	}
	public void setLastTradePrice(double lastTradePrice) {
		this.lastTradePrice = lastTradePrice;
	}
	public double getDayOpen() {
		return dayOpen;
	}
	public void setDayOpen(double dayOpen) {
		this.dayOpen = dayOpen;
	}
	public double getDayHigh() {
		return dayHigh;
	}
	public void setDayHigh(double dayHigh) {
		this.dayHigh = dayHigh;
	}
	public double getDayLow() {
		return dayLow;
	}
	public void setDayLow(double dayLow) {
		this.dayLow = dayLow;
	}
	public double getPreviousDayClose() {
		return previousDayClose;
	}
	public void setPreviousDayClose(double previousDayClose) {
		this.previousDayClose = previousDayClose;
	}
	@Override
	public String toString() {
		return "Symbol-" + getSymbol() + 
				", Last trade price-" + getLastTradePrice() + ", Day Low-" +
				getDayLow() + ", Day High-" + getDayHigh() + ", Previous Day close-" 
				+ getPreviousDayClose();
	}		

}
